package com.example.demo.service.db.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.Student;
import com.example.demo.entity.UserInfo;
import com.example.demo.mapper.StudentMapper;
import com.example.demo.mapper.UserInfoMapper;
import com.example.demo.service.db.StudentDBService;
import com.example.demo.service.db.UserInfoDBService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * t_user_info表操作实现类
 *
 * @author tulc
 */
@Service
public class UserInfoDBServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> implements UserInfoDBService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    /**
     * 查询用户列表
     */
    @Override
    public List<String> test(String mobile){
        return userInfoMapper.test(mobile);
    }

    /**
     * 测试分布式job
     */
    @Override
    public UserInfo testElasticJob(String shardingItem,
                            Integer shardingTotalCount){
        return userInfoMapper.testElasticJob(shardingItem,shardingTotalCount);
    }

}
